home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue48 / Alfresco / AADefine.INC < prev    next >
Encoding:
Text File  |  1999-06-19  |  2.2 KB  |  78 lines

  1. {*********************************************************}
  2. {* AADefine.inc                                          *}
  3. {* Copyright (c) Julian M Bucknall 1998-1999             *}
  4. {* All rights reserved.                                  *}
  5. {*********************************************************}
  6. {* Algorithms Alfresco compiler define include file      *}
  7. {*********************************************************}
  8.  
  9. {Note: this include file is released as freeware. In other words, you
  10.        are free to use this include file in your own units, however I
  11.        retain all copyright to the defines. JMB}
  12.  
  13.  
  14. {The following compiler define tells the compiler whether to include
  15.  debug information or not; certain units will also compile extra code
  16.  to be used for debugging with this define set}
  17. {$DEFINE DebugMode}
  18.  
  19.  
  20.  
  21. {===DO NOT CHANGE ANYTHING FROM THIS POINT===========================}
  22.  
  23. {---Calculate compiler defines based on compiler version-------------}
  24. {$IFDEF VER80}
  25.   {$DEFINE Delphi1}
  26.   {$DEFINE Delphi1Plus}
  27. {$ENDIF}
  28. {$IFDEF VER90}
  29.   {$DEFINE Delphi2}
  30.   {$DEFINE Delphi1Plus}
  31.   {$DEFINE Delphi2Plus}
  32. {$ENDIF}
  33. {$IFDEF VER100}
  34.   {$DEFINE Delphi3}
  35.   {$DEFINE Delphi1Plus}
  36.   {$DEFINE Delphi2Plus}
  37.   {$DEFINE Delphi3Plus}
  38. {$ENDIF}
  39. {$IFDEF VER120}
  40.   {$DEFINE Delphi4}
  41.   {$DEFINE Delphi1Plus}
  42.   {$DEFINE Delphi2Plus}
  43.   {$DEFINE Delphi3Plus}
  44.   {$DEFINE Delphi4Plus}
  45. {$ENDIF}
  46. {$IFDEF VER130}
  47.   {$DEFINE Delphi5}
  48.   {$DEFINE Delphi1Plus}
  49.   {$DEFINE Delphi2Plus}
  50.   {$DEFINE Delphi3Plus}
  51.   {$DEFINE Delphi4Plus}
  52.   {$DEFINE Delphi5Plus}
  53. {$ENDIF}
  54.  
  55.  
  56. {--Compiler options we MUST have set, others are no-care-------------}
  57. {$B-   Short-circuit boolean expressions }
  58. {$I+   I/O checking via exceptions }
  59. {$V-   Disable var string checking }
  60. {$W-   No Windows realmode stack frame }
  61. {$X+   Enable extended syntax }
  62. {$IFDEF DebugMode}
  63.   {$D+,L+  Enable debug information }
  64. {$ENDIF}
  65. {$IFDEF Delphi1}
  66.   {$G+   80286+ type instructions }
  67. {$ENDIF}
  68. {$IFDEF Delphi2Plus}
  69.   {$WARNINGS ON}
  70.   {$HINTS ON}
  71. {$ENDIF}
  72.  
  73.  
  74. {---Miscellaneous----------------------------------------------------}
  75. {$IFDEF Delphi1}
  76.   {$C MOVEABLE DEMANDLOAD DISCARDABLE}
  77. {$ENDIF}
  78.